package com.usian.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import java.util.Date;

public class Emp {
    @Id
    private Integer id;
    private String name;
    private String sex ;
    @DateTimeFormat(pattern ="yyyy-MM-dd")
    private Date ctime ;
    private String xl   ;
    private Integer zid ;
    private String address ;
    private String phone  ;
    private String jphone ;
    private Integer did;

    public Emp(Integer id, String name, String sex, Date ctime, String xl, Integer zid, String address, String phone, String jphone, Integer did) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.ctime = ctime;
        this.xl = xl;
        this.zid = zid;
        this.address = address;
        this.phone = phone;
        this.jphone = jphone;
        this.did = did;
    }

    public Emp() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public String getXl() {
        return xl;
    }

    public void setXl(String xl) {
        this.xl = xl;
    }

    public Integer getZid() {
        return zid;
    }

    public void setZid(Integer zid) {
        this.zid = zid;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getJphone() {
        return jphone;
    }

    public void setJphone(String jphone) {
        this.jphone = jphone;
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }
}
